 $(".return").click(function(){
                var name = $(".name").val();
                if(name==''){
                    layer.msg('请输入姓名');
                    return false;
                }
                var account=$('.account').val();
                if(account==''){
                    layer.msg('请输入账号');
                }
                var token = localStorage.phone;
                $.ajax({
                    url:'https://newapp.icandrive.cn/api/bind_account.php',
                    dataType:'json',
                    data:{token:token,name:name,account:account},
                    type:'post',
                    success:function(data){
                        if(data.status==250){
                            layer.msg("请重新登录");
                            setInterval(function(){
                                window.location.href="../login/log_in.html";
                            },2000);
                        }
                        if(data.status==200){
                            layer.msg('修改成功',function(){
                                  localStorage.alipay=account;
                                history.back();
                            },1000)

                        }
                        if(data.status==400){
                            layer.msg('操作失败');
                        }
                    },
                    error:function(){
                        layer.msg("服务器繁忙");
                    }
                });
            });
